AHardwareBuffer_allocate

Allocates a buffer that matches the passed AHardwareBuffer_Desc.

If allocation succeeds, the buffer can be used according to the usage flags specified in its description. If a buffer is used in ways not compatible with its usage flags, the results are undefined and may include program termination.

\return 0 on success, or an error number of the allocation fails for any reason. The returned buffer has a reference count of 1.

extern (C) nothrow @nogc
int
AHardwareBuffer_allocate

Meta